package com.chinasoft.service.serviceimpl;

import com.chinasoft.mapper.RfmCustomerAnalysisMapper;
import com.chinasoft.mapper.TrafficFunnelConversionAnalysisMapper;
import com.chinasoft.mapper.UserRetentionAnalysisMapper;
import com.chinasoft.pojo.RfmCustomerAnalysis;
import com.chinasoft.pojo.TrafficFunnelConversionAnalysis;
import com.chinasoft.pojo.UserRetentionAnalysis;
import com.chinasoft.service.AnalyzeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AnalyzeServiceImpl implements AnalyzeService {

    @Autowired
    private RfmCustomerAnalysisMapper rfmCustomerAnalysisMapper;
    @Autowired
    private TrafficFunnelConversionAnalysisMapper trafficFunnelConversionAnalysisMapper;
    @Autowired
    private UserRetentionAnalysisMapper userRetentionAnalysisMapper;


    public List<RfmCustomerAnalysis> getAllRfmCustomerAnalysisData() {
        return rfmCustomerAnalysisMapper.selectAll();
    }
    
    public List<TrafficFunnelConversionAnalysis> getAllTrafficFunnelConversionAnalysisData() {
        return trafficFunnelConversionAnalysisMapper.selectAll();
    }
    
    public List<UserRetentionAnalysis> getAllUserRetentionAnalysisData() {
        return userRetentionAnalysisMapper.selectAll();
    }
    
}